import Vue from 'vue'
import Router from 'vue-router'

import Login from '@/page/Login' //登录
import Home from '@/page/Home' //主页
import StorageBattery from '@/page/home/StorageBattery' //主页-电瓶服务
import Battery from '@/page/home/Battery' //主页-电池管理
import BatteryLife from '@/page/home/BatteryLife' //主页-电池管理-电池生命周期
import Substitute from '@/page/home/Substitute' //主页-电池服务-代客下单
import Put from '@/page/home/Put' //主页-电池服务-入库
import PutScan from '@/page/home/PutScan' //主页-电池服务-入库-扫描
import PutScanModel from '@/page/home/PutScanModel' //主页-电池服务-入库-添加型号
import BatteryGoods from '@/page/home/BatteryGoods' //主页-电池商品
import BatteryAdd from '@/page/home/BatteryAdd' //主页-添加电池
import Enquiries from '@/page/home/Enquiries' //主页-添加电池

import ElectricCar from '@/page/home/ElectricCar' //主页-电瓶车
import Car from '@/page/home/Car' //主页-电瓶车-车辆管理
import CarLife from '@/page/home/CarLife' //主页-电瓶车-车辆生命周期
import CarGoods from '@/page/home/CarGoods' //主页-电瓶车-车辆商品管理
import CarAdd from '@/page/home/CarAdd' //主页-电瓶车-添加车辆

import Charger from '@/page/home/Charger' //主页-充电服务
import ChargerService from '@/page/home/ChargerService' //主页-充电桩管理
import ChargerAdd from '@/page/home/ChargerAdd' //主页-充电桩管理-添加
import Address from '@/page/home/Address' //主页-充电桩管理-地址
import ChargeCabinet from '@/page/home/ChargeCabinet' //主页-充电柜管理
import ChargeCabinetAdd from '@/page/home/ChargeCabinetAdd' //主页-充电柜管理
import ChargeCabinetSet from '@/page/home/ChargeCabinetSet' //主页-充电柜管理-设置
import ChargeCabinetChange from '@/page/home/ChargeCabinetChange' //主页-充电柜管理-充电
import ChargeCost from '@/page/home/ChargeCost' //主页-费用设置
import Breakdown from '@/page/home/Breakdown' //主页-故障监控

import Repair from '@/page/home/Repair' //主页-上门快修
import RepairProject from '@/page/home/RepairProject' //主页-维修项目
import RepairProjectAdd from '@/page/home/RepairProjectAdd' //主页-维修项目-添加

import Shopping from '@/page/home/Shopping' //主页-商城管理
import ShoppingCenter from '@/page/home/ShoppingCenter' //主页-商城管理
import Goods from '@/page/home/Goods' //主页-商品管理
import GoodsAdd from '@/page/home/GoodsAdd' //主页-商品管理
import GoodsDetail from '@/page/home/GoodsDetail' //主页-商品管理

import Equipment from '@/page/Equipment' //设备
import EquipmentMy from '@/page/equipment/EquipmentMy' //设备-我的设备
import EquipmentPurchase from '@/page/equipment/EquipmentPurchase' //设备-采购设备
import EquipmentWarn from '@/page/equipment/EquipmentWarn' //设备-设备预警
import EquipmentBreakdown from '@/page/equipment/EquipmentBreakdown' //设备-故障/报废
import PurchaseItemized from '@/page/equipment/PurchaseItemized' //设备-采购明细


import Order from '@/page/Order' //订单
import Financial from '@/page/Financial' //财务
import My from '@/page/My' //我的



Vue.use(Router)

export default new Router({
  routes: [
    { path: '*', redirect: '/login' },
    {
      path: '/login',
      name: 'login',
       component: Login,
      meta: {
        title: '登录'
      }
    },
    {
      path: '/home',
      name: 'home',
       component: Home,
      meta: {
        title: '主页'
      }
    },
    {
      path: '/storageBattery',
      name: 'storageBattery',
       component: StorageBattery,
      meta: {
        title: '电瓶服务'
      }
    },
    {
      path: '/battery',
      name: 'battery',
       component: Battery,
      meta: {
        title: '电池管理'
      }
    },
    {
      path: '/batteryLife',
      name: 'batteryLife',
       component: BatteryLife,
      meta: {
        title: '电池生命周期'
      }
    },
    {
      path: '/substitute',
      name: 'substitute',
       component: Substitute,
      meta: {
        title: '代客人下单'
      }
    },
    {
      path: '/put',
      name: 'put',
       component: Put,
      meta: {
        title: '入库'
      }
    },
    {
      path: '/putScan',
      name: 'putScan',
       component: PutScan,
      meta: {
        title: '入库'
      }
    },
    {
      path: '/putScanModel',
      name: 'putScanModel',
       component: PutScanModel,
      meta: {
        title: '添加型号'
      }
    },
    {
      path: '/batteryGoods',
      name: 'batteryGoods',
       component: BatteryGoods,
      meta: {
        title: '电池商品管理'
      }
    },
    {
      path: '/batteryAdd',
      name: 'batteryAdd',
       component: BatteryAdd,
      meta: {
        title: '电池商品管理'
      }
    },
    {
      path: '/electricCar',
      name: 'electricCar',
       component: ElectricCar,
      meta: {
        title: '电瓶车'
      }
    },
    {
      path: '/car',
      name: 'car',
       component: Car,
      meta: {
        title: '电瓶车'
      }
    },
    {
      path: '/carLife',
      name: 'carLife',
       component: CarLife,
      meta: {
        title: '车辆生命周期'
      }
    },
    {
      path: '/carGoods',
      name: 'carGoods',
       component: CarGoods,
      meta: {
        title: '车辆商品管理'
      }
    },
    {
      path: '/carAdd',
      name: 'carAdd',
       component: CarAdd,
      meta: {
        title: '添加车辆'
      }
    },
    {
      path: '/charger',
      name: 'charger',
       component: Charger,
      meta: {
        title: '充电服务'
      }
    },
    {
      path: '/chargerService',
      name: 'chargerService',
       component: ChargerService,
      meta: {
        title: '充电桩管理'
      }
    },
    {
      path: '/chargerAdd',
      name: 'chargerAdd',
       component: ChargerAdd,
      meta: {
        title: '添加充电桩'
      }
    },
    {
      path: '/address',
      name: 'address',
       component: Address,
      meta: {
        title: '选择地址'
      }
    },
    {
      path: '/chargeCabinet',
      name: 'chargeCabinet',
      component: ChargeCabinet,
      meta: {
        title: '换电柜管理'
      }
    },
    {
      path: '/chargeCabinetAdd',
      name: 'chargeCabinetAdd',
      component: ChargeCabinetAdd,
      meta: {
        title: '添加换电柜'
      }
    },
    {
      path: '/chargeCabinetSet',
      name: 'chargeCabinetSet',
       component: ChargeCabinetSet,
      meta: {
        title: '换电柜设置'
      }
    },
    {
      path: '/chargeCabinetChange',
      name: 'chargeCabinetChange',
      component: ChargeCabinetChange,
      meta: {
        title: '充电'
      }
    },
    {
      path: '/chargeCost',
      name: 'chargeCost',
      component: ChargeCost,
      meta: {
        title: '充电'
      }
    },
    {
      path: '/breakdown',
      name: 'breakdown',
      component: Breakdown,
      meta: {
        title: '故障监控'
      }
    },
    {
      path: '/repair',
      name: 'repair',
      component: Repair,
      meta: {
        title: '上门快修'
      }
    },
    {
      path: '/repairProject',
      name: 'repairProject',
      component: RepairProject,
      meta: {
        title: '维修项目'
      }
    },
    {
      path: '/repairProjectAdd',
      name: 'repairProjectAdd',
      component: RepairProjectAdd,
      meta: {
        title: '添加维修项目'
      }
    },
    {
      path: '/shopping',
      name: 'shopping',
      component: Shopping,
      meta: {
        title: '商城管理'
      }
    },
    {
      path: '/shoppingCenter',
      name: 'shoppingCenter',
      component: ShoppingCenter,
      meta: {
        title: '商城管理'
      }
    },
    {
      path: '/goods',
      name: 'goods',
      component: Goods,
      meta: {
        title: '商品管理'
      }
    },
    {
      path: '/goodsAdd',
      name: 'goodsAdd',
      component: GoodsAdd,
      meta: {
        title: '商品管理'
      }
    },
    {
      path: '/goodsDetail',
      name: 'goodsDetail',
      component: GoodsDetail,
      meta: {
        title: '商品详情'
      }
    },
    {
      path: '/enquiries',
      name: 'enquiries',
      component: Enquiries,
      meta: {
        title: '一键查询'
      }
    },
    {
      path: '/equipment',
      name: 'equipment',
       component: Equipment,
      meta: {
        title: '设备'
      }
    },
    {
      path: '/equipmentMy',
      name: 'equipmentMy',
       component: EquipmentMy,
      meta: {
        title: '我的设备'
      }
    },
    {
      path: '/equipmentPurchase',
      name: 'equipmentPurchase',
       component: EquipmentPurchase,
      meta: {
        title: '采购设备'
      }
    },
    {
      path: '/equipmentWarn',
      name: 'equipmentWarn',
      component: EquipmentWarn,
      meta: {
        title: '设备预警'
      }
    },
    {
      path: '/equipmentBreakdown',
      name: 'equipmentBreakdown',
       component: EquipmentBreakdown,
      meta: {
        title: '故障/报废'
      }
    },
    {
      path: '/purchaseItemized',
      name: 'purchaseItemized',
       component: PurchaseItemized,
      meta: {
        title: '采购明细'
      }
    },
    {
      path: '/financial',
      name: 'financial',
       component: Financial,
      meta: {
        title: '财务'
      }
    },
    {
      path: '/my',
      name: 'my',
       component: My,
      meta: {
        title: '我的'
      }
    }
  ]
})
